package cn.imnaer.service.rpc.travelnote;

import java.util.List;

import cn.imnaer.service.persistence.model.TravelNote;
import cn.imnaer.service.persistence.model.TravelNoteComment;
import cn.imnaer.service.rest.view.model.SimpleTravelNote;
import cn.imnaer.service.rest.view.model.TravelNoteDetail;

public interface TravelNoteComponentRpcApi {

    public List<SimpleTravelNote> getTravelNoteListByUserId(String userId,int pageIndex);
    public TravelNoteDetail getTravelNoteDetail(String  travelNoteId,String userId);
    public void deleteTravelNote(String travelNoteId);
    public TravelNoteDetail createTravelNote(TravelNote travelNote);
    /**
     * 
     * 评论一个游记
     * @param travelNoteComment
     * @return
     */
    public TravelNoteDetail comment(TravelNoteComment travelNoteComment);
    public TravelNoteDetail removeComment(String travelNoteCommentId);
    public List<TravelNoteComment> comments(String travelNotePhotoId,int pageIndex);
    public TravelNoteDetail support(String travelNotePhotoId,String userId, boolean isAdd);

}
